import { defineMock } from 'vite-plugin-mock-dev-server'

export default defineMock([
  {
    url: '/api/test',
    body: {
      code: 200,
      message: 'Hello World!'
    }
  },
  {
    url: '/api/counter',
    delay: 2000,
    body: {
      code: 200,
      data: {
        counter: 9999
      }
    }
  }
])
